# -*- coding: utf-8 -*-
"""
@Time : 2024/2/23 8:46 PM
@Author: imamhusan
@Des: 分类模型
"""
from tortoise import Model, fields


class Type(Model):
    title_uy = fields.CharField(max_length=255, description='维文分类')
    title_ch = fields.CharField(max_length=255, description='中文分类')
    icon = fields.CharField(max_length=512, description='分类图标')
    state = fields.IntField(default=1, description='状态：1表示显示 0表示隐藏')
    create_time = fields.DatetimeField(auto_now_add=True, description='创建时间')
    update_time = fields.DatetimeField(auto_now=True, description='更新时间')

    class Meta:
        table = 'oz_type'
        table_description = '分类表'


